#! /bin/bash
is_directory()
{
	DIR_NAME=$1
	if [ ! -d $DIR_NAME ];then
		return 1
	else
		return 0
	fi
}

for DIR in $@ ;do
	if is_directory $DIR
	then echo "exist"
	else
		echo "DIR no exist...Creat now......"
		mkdir $DIR >/dev/null 2>&1
		if [ $? -ne 0 ];then
			ehco "create dir failure..."
			exit 1
		fi
	fi
done

